package com.fantasy.draby.service.game.impl;

import com.fantasy.draby.dto.Game;
import com.fantasy.draby.mapper.GameMapper;
import com.fantasy.draby.service.game.GameService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("gameService")
public class GameServiceImpl implements GameService {
    private final GameMapper gameMapper;

    public GameServiceImpl(GameMapper gameMapper) {
        this.gameMapper = gameMapper;
    }

    public List<Game> queryAllGames() {
        return gameMapper.queryAllGames();
    }
}
